package org.kimoji.search.service;

import java.util.List;

import org.apache.lucene.document.Document;
import org.kimoji.common.MultiData;
import org.kimoji.entity.Album;
import org.kimoji.entity.Item;
import org.kimoji.search.SearchData;
import org.kimoji.search.Searcher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SearchService {

	@Autowired
	private Searcher searcher;
	
	public MultiData<Item> searchItem(){
		SearchData searchData = new SearchData();
		searchData = searcher.search(searchData);
		List<Document> documents = searchData.getDocuments();
		return null;
	}
	
	public MultiData<Album> searchAlbum(){
		
		return null;
	}
	
}
